﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CollegeWebsite.Models;

namespace CollegeWebsite.Controllers
{
    public class ContactController : Controller
    {
        private readonly CollegeDataContext _dataContext = new CollegeDataContext();

        //
        // GET: /Contact/

        public ActionResult Index()
        {
            List<Contact> listContact = _dataContext.Contacts.Select(c => c).ToList();
            return View(listContact);
        }

    }
}
